package com.myself.cloud.entity.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Package: com.myself.cloud.entity
 * @Author baijialiang
 * @CreateDate 2022-08-22
 * @describe 审批流配置表实体类
 */
@Data
@TableName("approve_process_config")
@ApiModel(value="ApproveProcessConfig对象", description="审批流配置表")
    public class ApproveProcessConfig implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
    * 主键id
    */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "approve_id", type = IdType.AUTO)
    private Integer approveId;
    
    /**
    * 审批code 雪花算法生成
    */
    @ApiModelProperty(value = "审批code 雪花算法生成")
    private String approveCode;
    
    /**
    * 审批流名称
    */
    @ApiModelProperty(value = "审批流名称")
    private String approveName;
    
    /**
    * 角色id 英文逗号分隔
    */
    @ApiModelProperty(value = "角色id 英文逗号分隔")
    private String roleIds;
    
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    
    /**
    * 创建人
    */
    @ApiModelProperty(value = "创建人")
    private String creater;
    
    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    
    /**
    * 1-有效 2-无效
    */
    @ApiModelProperty(value = "1-有效 2-无效")
    private Integer status;
    
    /**
    * 修改人
    */
    @ApiModelProperty(value = "修改人")
    private String updater;
}